package com.hengpeng.msls.service.activity;

import java.util.List;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.itfinbase.en.RewardRedPacketStatus;
import com.hengpeng.itfinbase.persist.RewardRedpacket;
import com.hengpeng.msls.vo.activity.RewardRedpacketVo;

/**
 * 红包服务
 * 
 * @author weiyuan
 *
 */
public interface RedPacketService { 

    /**
     * <pre>
     * 获取指定人员的红包记录
     * </pre>
     * 
     * @param userId
     * @return
     */
    public ServiceResult<List<RewardRedpacket>> queryMyList(Long userId, RewardRedPacketStatus[] status,Integer curPage, Integer pageSize);
    
    /**
     * <pre>
     * 获取指定人员的红包记录
     * </pre>
     * 
     * @param userId
     * @return
     */
    public ServiceResult<List<RewardRedpacketVo>> queryMyVoList(Long userId, RewardRedPacketStatus[] status,Integer curPage, Integer pageSize);
    
    /**
     * <pre>
     * 根据红包状态获取指定人员的红包余额
     * </pre>
     * 
     * @param userId
     * @param status
     * @return
     */
    public Long countRedPacket(Long userId, RewardRedPacketStatus[] status);

}
